package Review2;

public class Test14 {
   public void reOrderArr(int[] array){
	   if(array==null||array.length==0){
		   return;
	   }
	   int i =0;
	   int j = array.length-1;
	   while(i<j){
		   while(i<j&&(array[i]&1)==1){
			   i++;
		   }
		   while(i<j&&(array[j]&1)==0){
			   j--;
		   }
		   if(i<j){
			   int temp=array[i];
			   array[i] = array[j];
			   array[j] = temp;
		   }
		   
	   }
   }
}
